def calculate(d):
    try:
        return 100/d
    except ZeroDivisionError as e:
        print("raise")
        raise ValueError("Invalid inputs")
    finally:
        # return 0 # 如果不注释，异常就不会暴露
        pass


print(calculate(0))
